package com.gfq;

import java.util.Scanner;

public class MyClass{
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String str = sc.nextLine();
		sc.nextLine();
		int n = Integer.valueOf(str), r,c;
		
		for (int i = 0; i < n; i++) {
			printSolution(new Point(sc.nextLine()));
		}
		sc.close();
	}

	private static void printSolution(Point point) {
		/*
		 * dos puntos p y p1
		 * con coordenadas r,c y r1, c1
		 * cumplen con 
		 * 		r<>r1
		 * 		c<>c1
		 * 		r+c<>r1+c1
		 * 		r-c<>r1-c1
		 * intuyo que armando un arbol 
		 * */
		
		

	}
	public static class Point{
		public int r;
		public int c;

		public Point(String str) {
			String[] arr = str.split("\\ ");
			r = Integer.valueOf(arr[0]);
			c = Integer.valueOf(arr[1]);
			
		}
		
	}

}
